const mongoose = require("mongoose");

const Schema = mongoose.Schema;
let shopCarSchema = new Schema({
  name: { type: String, required: true },
  price: { type: String, default: 0 },
  num: { type: Number, default: 0 },
  uid: { type: String, required: true },
  ctime: { type: Date, default: Date.now },
});

let cartModel = mongoose.model("shopCar", shopCarSchema);

module.exports = cartModel;
